package com.tsmti.system.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * @Package：com.tsmti.system.entity
 * @Class：ServiceInfo
 * @Description： WebService配置信息
 * @Author：zcw
 * @Date：Created in 2018/7/23 17:47
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "pims_serviceInfo")
@DynamicUpdate
@DynamicInsert
@Where(clause = "delFlag = 0")
public class ServiceInfo extends BaseDataEntity<Long> {
    private static final long serialVersionUID = 1976426514377804152L;
    /**ID*/
    private Long id;
    /**交易代码*/
    private String tranId;
    /**方法名称*/
    private String name;
    /**wsdl地址*/
    private String wsdllocation;
    /**完整类名*/
    private String className;
    /**说明 */
    private String description;

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_ServiceInfo")
    @SequenceGenerator(name = "SEQ_ServiceInfo", sequenceName = "SERVICEINFO_SEQUENCE", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getTranId() {
        return tranId;
    }

    public void setTranId(String tranId) {
        this.tranId = tranId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWsdllocation() {
        return wsdllocation;
    }

    public void setWsdllocation(String wsdllocation) {
        this.wsdllocation = wsdllocation;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
